WM=dwm
source ~/.profile

# some status bar with dwm
if [ "$WM" = "dwm" ]; then
	while true
	do
		xsetroot -name "[$(acpi -b | sed 's/Battery 0:\s//')] [$(cat /proc/loadavg)] [$(date)]"
		sleep 1
	done &
fi

# custom fonts
xset +fp ~/.local/share/fonts/Dina/
xset fp rehash

# stop beeping
xset b off

# normal cursor (+behaviour) in xmonad
xsetroot -cursor_name left_ptr

# compose key
setxkbmap -option compose:ralt

redshift &

# if I would like to use plan9 style window manager...
if [ "$WM" = "rio" ]; then
	SHELL=rcLogin; export SHELL
	TERM=dumb; export TERM
fi

plumber &

exec $WM
